package utils

const Token string = "token"

// 为全局返回结果定义枚举
var (
	Succeed     = &ResJson{Code: "1000", Msg: "ok"}
	NoLogin     = &ResJson{Code: "1001", Msg: "对不起，您未登录或登录超时，请登录～！"}
	ParamErr    = &ResJson{Code: "1002", Msg: "对不起，您请求的参数为空或不正确，请检查～！"}
	Exists      = &ResJson{Code: "1003", Msg: "对不起，填写的信息已存在，请更换～！"}
	NoData      = &ResJson{Code: "1004", Msg: "暂无内容～"}
	SysErr      = &ResJson{Code: "1005", Msg: "对不起，系统错误，请联系系统管理员～！"}
	DbErr       = &ResJson{Code: "1005", Msg: "对不起，系统错误——数据库预处理失败，请联系系统管理员～！"}
	DataErr     = &ResJson{Code: "1005", Msg: "对不起，系统错误——数据处理失败，请联系系统管理员～！"}
	RedisErr    = &ResJson{Code: "1006", Msg: "对不起，系统错误——缓冲数据处理失败，请联系系统管理员～！"}
	UnPass      = &ResJson{Code: "1007", Msg: "对不起，该登录账号被冻结，请联系系统管理员～！"}
	PackErr     = &ResJson{Code: "1008", Msg: "对不起，数据封装失败，请联系系统管理员～！"}
	UserErr     = &ResJson{Code: "1009", Msg: "对不起，用户名或密码不正确，请重试～！"}
	UpfileErr   = &ResJson{Code: "1010", Msg: "对不起，获取上传的文件失败，请重试～！"}
	NotAllow    = &ResJson{Code: "1011", Msg: "对不起，不允许上传该类型的文件，请重试～！"}
	UpPathErr   = &ResJson{Code: "1011", Msg: "对不起，创建上传目录失败，请重试～！"}
	FileSize    = &ResJson{Code: "1012", Msg: "对不起，上传文件大小超出系统限制，请重试～！"}
	UploadErr   = &ResJson{Code: "1013", Msg: "对不起，上传文件失败，请重试～！"}
	DownloadErr = &ResJson{Code: "1014", Msg: "对不起，获取下载的文件失败，请重试～！"}
	DelFileErr  = &ResJson{Code: "1015", Msg: "对不起，删除文件失败，请重试～！"}
	ChkCodeErr  = &ResJson{Code: "1016", Msg: "对不起，您输入的验证码不正确，请重试～！"}
	PwdErr      = &ResJson{Code: "1017", Msg: "对不起，登录密码为空，或长度不是6至30位，请检查～！"}
	OldPwdErr   = &ResJson{Code: "1018", Msg: "对不起，您输入的原始密码不正确，请重试～！"}
	TwoPwdErr   = &ResJson{Code: "1019", Msg: "对不起，您输入的两次密码不一致，请重试～！"}
	ParentErr   = &ResJson{Code: "1020", Msg: "对不起，选择的所属父级不允许为自己，请重试～！"}
)

// 定义全局的菜单编码枚举
const (
	SysConf  string = "10010101"
	SysMenu  string = "10010102"
	SysBtn   string = "10010103"
	SysRole  string = "10010104"
	SysUser  string = "10010105"
	SysDict  string = "10010106"
	SysTag   string = "10010107"
	SysLog   string = "10010108"
	Mine     string = "10010109"
	SysNote  string = "10010110"
	SysFile  string = "10010110"
	Feedback string = "10010112"

	// Infor 资讯
	Infor   string = "10020101"
	Keyword string = "10020301"
	KwLog   string = "10020302"

	// Exam 问卷
	ExamBase string = "10020203"
	Exam     string = "10020201"
	ExamLog  string = "10030102"

	// GoodsBrand 商品品牌
	GoodsBrand string = "10030201"
	GoodsType  string = "10030202"
	GoodsSpu   string = "10030203"
)
